
/** 配置并链接MongoDB **/
var mongoose = require('mongoose');
var url = 'mongodb://localhost/chat';

// mongoose.connect(uri);

mongoose.connect(url, {
    useNewUrlParser: true
})
